package com.zidian.teacher.fragment;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;

import com.zidian.teacher.R;
import com.zidian.teacher.activity.EvaluateActivity;
import com.zidian.teacher.activity.EvaluateFeedBackActivity;
import com.zidian.teacher.activity.EvaluateOtherListActivity;
import com.zidian.teacher.common.BaseFragment;


/**
 * Created by Administrator on 2016/9/5 0005.
 */
public class TeachingEvaluationFragment extends BaseFragment {

    private LinearLayout EvaluateMy;
    private LinearLayout EvaluateOther;


    @Override
    protected int getLayoutId() {
        return R.layout.tab_fragment_evaluate;
    }

    public static TeachingEvaluationFragment newInstance() {
        return new TeachingEvaluationFragment();
    }

    @Override
    protected void initView(View view, Bundle savedInstanceState) {
        EvaluateMy = (LinearLayout) view.findViewById(R.id.teaching_evaluate_my);
        EvaluateOther = (LinearLayout) view.findViewById(R.id.teaching_evaluate_other);


        EvaluateMy.setOnClickListener(mListener);
        EvaluateOther.setOnClickListener(mListener);

    }

    private View.OnClickListener mListener = new View.OnClickListener() {
        @Override
        public void onClick(View view) {

            switch (view.getId()) {
                case R.id.teaching_evaluate_my:
                    startActivity(EvaluateActivity.class);
                    break;
//                case R.id.interaction_material:
//                    startActivity(InteractionMaterialAct.class);
//                    break;
                case R.id.teaching_evaluate_other:
                    startActivity(EvaluateOtherListActivity.class);
                    break;
            }

        }
    };

}
